#include<stdio.h>
int main(){
    int a,b,sum,difference,product;
    double quotient,ave;
    scanf("%d %d",&a,&b);
    sum=a+b;
    difference=a-b;
    product=a*b;
    quotient=(double)a/(double)b;
    ave=(a+b)/2.0;
    printf("%d %d %d %f %f\n",sum,difference,product,quotient,ave);
    return 0;
}